// import { Binary, Long } from "mongodb";

export enum Status {
    delete = -1,
    normal,
}

export interface IPage {
    pageIndex: number,
    pageSize: number,
    keyword: string,
    sort?:string
}

export interface IArticle {
    content: string
    title: string
    subTitle:string
    tags: string[]
    ctime?: number
    mtime?: number
    banner: string[]
    status?: number
    preview?: number
    author?: string
}

export interface ITag {
    title: string
    ctime: number
    status?: Status
}

export interface IUser {
    nickname: string
    account: string
    avatar: string
    pwd: string
    ctime?: number
    status?: Status
    _id?: string
}

export interface IToken {
    userId: string
}

export interface IArtItem {
    _id: string,
    author: IUser,
    content: string,
    ctime: number,
    mtime: number,
    banner: string[],
    subTitle:string,
    preview: number,
    status: number,
    tags: string,
    title: string
}
